<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRegistryFilesTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('registry_files', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->bigInteger('registry_id')->index()->comment('注册ID');
            $table->string('file_type', 16)->comment('文件类型');
            $table->string('file_path', 256)->comment('文件地址');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('registry_files');
    }
}
